package com.abhinav.designPatterns.mediator;

//Colleage
public abstract class Colleague {
	private Mediator mediator;

	public Colleague(Mediator mediator) {
		this.mediator = mediator;
	}

	// send a message via the mediator
	public void send(String message) {
		mediator.send(message, this);
	}

	public Mediator getMediator() {
		return mediator;
	}

	public abstract void receive(String message);

}
